package com.sqfw.project.zj.service.impl;

import com.sqfw.project.zj.domain.ZjSoundCaseLog;
import com.sqfw.project.zj.mapper.ZjSoundCaseLogMapper;
import com.sqfw.project.zj.service.IZjSoundCaseLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工单表Service业务层处理
 *
 * @author lx
 * @date 2023-06-07
 */
@Service
public class ZjSoundCaseLogServiceImpl implements IZjSoundCaseLogService{

    @Autowired
    private ZjSoundCaseLogMapper zjSoundCaseLogMapper;

    /**
     * 查询声音案例轨迹列表
     * @param zjSoundCaseLog 声音案例轨迹
     * @return 声音案例轨迹列表
     */
    public List<ZjSoundCaseLog> qryZjSoundCaseLogList(ZjSoundCaseLog zjSoundCaseLog){
        return zjSoundCaseLogMapper.qryZjSoundCaseLogList(zjSoundCaseLog);
    }


    /**
     * 根据轨迹id查看声音案例轨迹
     * @param processId 轨迹id
     * @return ZjSoundCaseLog 声音案例轨迹
     */
    public ZjSoundCaseLog qryZjSoundCaseLogByProcessId(Long processId){
        return zjSoundCaseLogMapper.qryZjSoundCaseLogByProcessId(processId);
    }


    /**
     * 插入一条案例轨迹
     * @param zjSoundCaseLog 声音案例轨迹
     * @return int 结果
     */
    public int addZjSoundCaseLog(ZjSoundCaseLog zjSoundCaseLog){
        return zjSoundCaseLogMapper.addZjSoundCaseLog(zjSoundCaseLog);
    }


}
